package com.xxx.gaoxi.user.service;

import com.xxx.gaoxi.common.service.facade.entity.UserEntity;
import com.xxx.gaoxi.common.service.facade.entity.req.LoginReq;
import com.xxx.gaoxi.common.service.facade.service.UserService;
import org.springframework.stereotype.Service;

/**
 * Description
 * ...
 * DATE 2018/4/2.
 *
 * @author Mr. Chun.
 */
@Service
public class UserServiceImpl implements UserService {
    @Override
    public UserEntity login(LoginReq loginReq) {
        if(loginReq.getUserName().equals("admin") && loginReq.getPassword().equals("admin")){
            return new UserEntity(1,"John",25);
        }
        return new UserEntity();
    }
}
